FROM selenium/node-chrome
LABEL maintainer="476875553@qq.com"
RUN sudo mkdir -p /home/SearchBaidu
WORKDIR /home/SearchBaidu/
COPY ./ /home/SearchBaidu
RUN sudo apt-get update && \
    sudo apt-get install -y vim && \
    sudo apt-get install -y python3-pip && \
    sudo pip3 install redis -i https://mirrors.aliyun.com/pypi/simple/ && \
    sudo pip3 install selenium -i https://mirrors.aliyun.com/pypi/simple/ && \
    sudo pip3 install fastapi -i https://mirrors.aliyun.com/pypi/simple/ && \
    sudo pip3 install uvicorn
CMD ["uvicorn", "api:app","--host","0.0.0.0","--port","8000"]
